package com.prd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.prd.dto.CustomerVisitDTO;
import com.prd.model.CustomerVisitDO;
import com.prd.util.JsonData;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 客户-项目 服务类
 * </p>
 *
 * @author o1
 * @since 2023-12-26
 */
public interface CustomerVisitService extends IService<CustomerVisitDO> {


    /**
     * 拜访列表
     *
     * @param page
     * @param size
     * @param date
     * @param businessManagerId
     * @param status
     * @return
     */
    Map<String, Object> uSearch(int page, int size, Date date, int businessManagerId, int status);

    /**
     * 新增拜访
     * @param visitDTO
     * @return
     */
    JsonData uAdd(CustomerVisitDTO visitDTO);

    /**
     * 查看拜访详情
     * @param visitNo
     * @param businessManagerId
     * @param status
     * @return
     */
    JsonData uDetail(String visitNo, int businessManagerId, int status);

    /**
     * 请求增援
     *
     * @param visitNo
     * @param businessManagerId
     * @param businessManager
     * @param businessDepartmentId
     * @param businessDepartment
     * @param businessPhone
     * @return
     */
    JsonData uAddBusinessManager(String visitNo, int businessManagerId, String businessManager, int businessDepartmentId, String businessDepartment, String businessPhone);

    /**
     * 修改拜访
     * @param visitDTO
     * @return
     */
    JsonData uUpdate(CustomerVisitDTO visitDTO);

    JsonData uFinish(CustomerVisitDTO visitDTO);

    JsonData uArrival(CustomerVisitDTO visitDTO);
}
